﻿// =================================================================== 
// 项目说明
//====================================================================
// liucx @Copy Right 2019
// 文件： CouponEntity.cs
// 项目名称：斑马车务
// 创建时间：2019/11/29
// 负责人：liucx
// ===================================================================

using System;
using Dapper.Extensions;

namespace YouWei.Infrastructure.Entity
{
    /// <summary>
    ///数据实体  
    /// </summary>
    [PrimaryKey("CouponID")]
    public class Coupon
    {
        ///<summary>
        ///
        ///</summary>
        public Coupon()
        {
        }


        ///<summary>
        ///
        ///</summary>
        [Column("CouponID", "")]
        public int CouponID { get; set; }

        ///<summary>
        ///优惠券码
        ///</summary>
        [Column("CouponCode", "优惠券码")]
        public string CouponCode { get; set; }

        ///<summary>
        ///优惠券面值
        ///</summary>
        [Column("CouponPrice", "优惠券面值")]
        public int CouponPrice { get; set; }

        ///<summary>
        ///渠道来源，暂定字符串
        ///</summary>
        [Column("Channel", "渠道来源，暂定字符串")]
        public string Channel { get; set; }

        ///<summary>
        ///折扣,两位小数, 85折存0.85
        ///</summary>
        [Column("Discount", "折扣,两位小数, 85折存0.85")]
        public double Discount { get; set; }

        ///<summary>
        ///优惠券类型，1洗车 ，2礼品
        ///</summary>
        [Column("CouponType", "优惠券类型，1洗车 ，2礼品")]
        public int CouponType { get; set; }

        ///<summary>
        ///批次
        ///</summary>
        [Column("Batch", "批次")]
        public int Batch { get; set; }

        ///<summary>
        ///优惠券状态 0.未领取 1.已领取 
        ///</summary>
        [Column("CouponStatus", "优惠券状态 0.未领取 1.已领取 ")]
        public int CouponStatus { get; set; }

        ///<summary>
        ///
        ///</summary>
        [Column("CreateDate", "")]
        public DateTime CreateDate { get; set; }
        ///<summary>
        ///
        ///</summary>
        [Column("UpdateDate", "")]
        public DateTime UpdateDate { get; set; }
        
        ///<summary>
        ///
        ///</summary>
        [Column("IsActive", "")]
        public int IsActive { get; set; }

    }
}